<include file="Public:header" />
<load href="__JS__/upload/uploadify.css" />
<load href="__JS__/swfobject.js" />
<script type="text/javascript" src="__JS__/jquery.uploadify.v2.1.4.min.js"></script> 
<script type="text/javascript" src="__JS__/jianfanzhuanhuan.js"></script>
<div class="content">
<!-----------------------------------------内容开始--------------------------------------------------->
<div class="infoBox">
<form name="form" action="{:U('dotou_shi_info')}" method="post" onsubmit="return checkform();">
<input type="hidden" name="id" value="{$id}" />
<input type="hidden" name="uid" value="{$uid}" />


<table width="100%" border="0" cellpadding="0" cellspacing="0" id="basic">

<tr>
	<td class="infoBoxTd">所属投票主题：</td>
	<td colspan="2">
		<select name="tid" >
			<option value="0">请选择</option>
			<volist name="tou" id="tou">
				<option value="{$tou.id}" <eq name="tou.id" value="$tid">selected="selected"</eq> >{$tou.name}</option>
			</volist>
		</select>

	</td>
</tr>

<tr>
	<td class="infoBoxTd">姓名：</td>
	<td colspan="2">
	<INPUT name="name" value="{$name}" class="formTitle xzzsinput" size="80" maxlength="150" onkeyup="word_count(150,this)" onblur="auto_save('name')" >您已输入<span class="fred ysrzs">0</span>字，还可输入<span class="fred syzs">150</span>字。

	</td>
</tr>

<tr>
	<td class="infoBoxTd">手机号：</td>
	<td colspan="2">
	{$admin.tel}
	</td>
</tr>

<tr>
	<td class="infoBoxTd">身份证号：</td>
	<td colspan="2">
	{$shenfenid}
	</td>
</tr>

<tr>
	<td class="infoBoxTd">出生日期：</td>
	<td colspan="2">
	{$admin_info.year} 年 {$admin_info.month} 月 {$admin_info.day} 日 
	</td>
</tr>

<tr>
	<td class="infoBoxTd">民族：</td>
	<td colspan="2">
	{$minzu}
	</td>
</tr>

<tr>
	<td class="infoBoxTd">出生地：</td>
	<td colspan="2">
	{$chushengdi}
	</td>
</tr>

<tr>
	<td class="infoBoxTd">籍贯：</td>
	<td colspan="2">
	{$admin_info.home}
	</td>
</tr>

<tr>
	<td class="infoBoxTd">所在城市：</td>
	<td colspan="2">
	{$admin_info.area}
	</td>
</tr>

<tr>
	<td class="infoBoxTd">身高：</td>
	<td colspan="2">
	{$shengao} CM
	</td>
</tr>

<tr>
	<td class="infoBoxTd">体重：</td>
	<td colspan="2">
	{$tizhong} KG
	</td>
</tr>

<tr>
	<td class="infoBoxTd">血型：</td>
	<td colspan="2">
	{$xuexing}
	</td>
</tr>

<tr>
	<td class="infoBoxTd">星座：</td>
	<td colspan="2">
	{$xingzuo}
	</td>
</tr>

<tr>
	<td class="infoBoxTd">微博：</td>
	<td colspan="2">
	{$weibo}
	</td>
</tr>

<tr>
	<td class="infoBoxTd">QQ：</td>
	<td colspan="2">
	{$admin_info.qq}
	</td>
</tr>

<tr>
	<td class="infoBoxTd">电子邮件：</td>
	<td colspan="2">
	{$admin.adm_name}
	</td>
</tr>

<tr>
	<td class="infoBoxTd">学历：</td>
	<td colspan="2">
	{$admin_info.education}
	</td>
</tr>

<tr>
	<td class="infoBoxTd">所学专业：</td>
	<td colspan="2">
	{$zhuanye}
	</td>
</tr>

<tr>
	<td class="infoBoxTd">工作单位或学校：</td>
	<td colspan="2">
	{$danwei}
	</td>
</tr>

<tr>
	<td class="infoBoxTd">职业：</td>
	<td colspan="2">
	{$admin_info.job}
	</td>
</tr>

<tr>
	<td class="infoBoxTd">三围：</td>
	<td colspan="2">
	{$sanwei}
	</td>
</tr>

<tr>
	<td class="infoBoxTd">相关经验：</td>
	<td colspan="2">
	{$jingyan}
	</td>
</tr>

<tr>
	<td class="infoBoxTd">何时何地曾参加过何种同类比赛：</td>
	<td colspan="2">
	{$bisai}
	</td>
</tr>

<tr>
	<td class="infoBoxTd">封面照片：</td>
	<td colspan="2">
		<img id="fengmian" src="<neq name='fengmian' value=''>{$fengmian}<else/>__PUBLIC__/images/nopic.gif</neq>" style="float:left;margin-right:20px;max-width:200px;max-height:200px;" />
		<div class="upimg-box">
			<div id="fileQueue"></div>
			<input id="file_upload_fengmian" type="file" /><input name="fengmian" type="hidden" value="{$fengmian}" />
		</div>
		<a href="{$fengmian}" target="_blank" class="buttom" style="margin-top:10px;"  >查看大图</a>
		<div class="tj_xiangsu">
			推荐像素：不小于 200px * 200px
		</div>
	</td>
</tr>
<script>
//图片上传
$("#file_upload_fengmian").uploadify({
		'uploader'       : '__JS__/swf/uploadify.swf',
		'script'         : '__JS__/upload/uploadify.php',
		'cancelImg'      : '__JS__/upload/cancel.png',
		'folder'         : 'data/tou_shi_img',
		'queueID'        : 'fileQueue',
		'sizeLimit'      :	2 * 1000 * 1024,
		'fileExt'        : '*.jpg;*.gif;*.png;', //允许文件上传类型,和fileDesc一起使用.
		'fileDesc'       : '*.jpg;*.gif;*.png;',  //选择文件对话框中的提示文本.
		'auto'           : true,
		'multi'          : false,	
		'onComplete':function(event,queueId,fileObj,response,data){
			$('input[name="fengmian"]').val(response);
			$('#fengmian').attr('src', response);
		}
});

</script>
<tr>
	<td class="infoBoxTd">身份证正面照：</td>
	<td colspan="2">
		<img src="{$sfz_zheng}" style="float:left;margin-right:20px;max-width:200px;max-height:200px;" />
		<a href="{$sfz_zheng}" target="_blank" class="buttom" style="margin-top:10px;"  >查看大图</a>
	</td>
</tr>
<tr>
	<td class="infoBoxTd">身份证反面照：</td>
	<td colspan="2">
		<img src="{$sfz_fan}" style="float:left;margin-right:20px;max-width:200px;max-height:200px;" />
		<a href="{$sfz_fan}" target="_blank" class="buttom" style="margin-top:10px;"  >查看大图</a>
	</td>
</tr>
<tr>
	<td class="infoBoxTd">脸部特写照1：</td>
	<td colspan="2">
		<img src="{$lian1}" style="float:left;margin-right:20px;max-width:200px;max-height:200px;" />
		<a href="{$lian1}" target="_blank" class="buttom" style="margin-top:10px;"  >查看大图</a>
	</td>
</tr>
<tr>
	<td class="infoBoxTd">脸部特写照2：</td>
	<td colspan="2">
		<img src="{$lian2}" style="float:left;margin-right:20px;max-width:200px;max-height:200px;" />
		<a href="{$lian2}" target="_blank" class="buttom" style="margin-top:10px;"  >查看大图</a>
	</td>
</tr>
<tr>
	<td class="infoBoxTd">素颜照1：</td>
	<td colspan="2">
		<img src="{$suyan1}" style="float:left;margin-right:20px;max-width:200px;max-height:200px;" />
		<a href="{$suyan1}" target="_blank" class="buttom" style="margin-top:10px;"  >查看大图</a>
	</td>
</tr>
<tr>
	<td class="infoBoxTd">素颜照2：</td>
	<td colspan="2">
		<img src="{$suyan2}" style="float:left;margin-right:20px;max-width:200px;max-height:200px;" />
		<a href="{$suyan2}" target="_blank" class="buttom" style="margin-top:10px;"  >查看大图</a>
	</td>
</tr>
<tr>
	<td class="infoBoxTd">艺术照/写真照/生活照1：</td>
	<td colspan="2">
		<img src="{$xiezhen1}" style="float:left;margin-right:20px;max-width:200px;max-height:200px;" />
		<a href="{$xiezhen1}" target="_blank" class="buttom" style="margin-top:10px;"  >查看大图</a>
	</td>
</tr>
<tr>
	<td class="infoBoxTd">艺术照/写真照/生活照2：</td>
	<td colspan="2">
		<img src="{$xiezhen2}" style="float:left;margin-right:20px;max-width:200px;max-height:200px;" />
		<a href="{$xiezhen2}" target="_blank" class="buttom" style="margin-top:10px;"  >查看大图</a>
	</td>
</tr>

</table>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="infoBoxTd">&nbsp;</td>
<td align="left">
	<php>
	if(!$state){
	</php>
		<input type="submit" name="Button1" value="提交审核" class="formInput01" />
	<php>
	}else{
	</php>
		<input type="submit" name="Button1" value="保存" class="formInput01" />
	<php>
	}
	</php>
</td>
</tr>
</table>
</form>
</div>
<!-----------------------------------------内容结束--------------------------------------------------->
</div>
<script language="javascript">

//表单验证
function checkform(){
	var n = $('input[name="name"]').val();
	if(n == ''){
		ui.error('请输入姓名');
		return false;
	}

}

</script>
    

<include file="Public:footer" />
